<#-- User: soft Date: 2018/11/11 15:44 -->
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport"
        content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  <#include "../cdn.ftl">
  <link rel="stylesheet" href="${root}/static/css/admin.css">
  <link rel="stylesheet" href="${root}/static/css/style.css">
  <script src="${root}/static/js/navigation.js"></script>
  <title>招新后台</title>
</head>
<body>
<nav class="admin-nav">
  <div class="nav-left">
    招新系统
  </div>
  <div class="nav-other">
    <div class="pull-right">
      <button onclick="logout()" class="btn btn-xs btn-danger">注销</button>
    </div>
  </div>
</nav>
<aside class="admin-aside">
  <ul class="menu list-unstyled">
    <li class="${home!''}">
      <a href="${root}/admin"><span class="glyphicon glyphicon-home"></span>仪表盘</a>
    </li>
    <li class="${list!''}">
      <a href="${root}/admin/list"><span class="glyphicon glyphicon-list-alt"></span>报名管理</a>
    </li>
    <li class="${email!''}">
      <a href="${root}/admin/email"><span class="glyphicon glyphicon-envelope"></span>邮件通知</a>
    </li>
  </ul>
</aside>
<script>
  function logout() {
    layer.confirm("确定注销？", function (index) {
      $.post('${root}/logout', function (data) {
        layer.msg("注销成功！");
        layer.close(index);
        window.setTimeout(function () {
          location.href = '${root}/login';
        }, 1200);
      });
    })
  }
</script>
